package com.yulang.springbootnetty.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 2020-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = ID, type = IdType.INPUT)
    private String id;

    @TableField(USERNAME)
    private String username;

    @TableField(PASSWORD)
    private String password;

    @TableField(FACE_IMAGE)
    private String faceImage;

    @TableField(FACE_IMAGE_BIG)
    private String faceImageBig;

    @TableField(NICKNAME)
    private String nickname;

    @TableField(QRCODE)
    private String qrcode;

    @TableField(CID)
    private String cid;


    public static final String ID = "`id`";

    public static final String USERNAME = "`username`";

    public static final String PASSWORD = "`password`";

    public static final String FACE_IMAGE = "`face_image`";

    public static final String FACE_IMAGE_BIG = "`face_image_big`";

    public static final String NICKNAME = "`nickname`";

    public static final String QRCODE = "`qrcode`";

    public static final String CID = "`cid`";


    public static final String ID_COMMENT = "";

    public static final String USERNAME_COMMENT = "";

    public static final String PASSWORD_COMMENT = "";

    public static final String FACE_IMAGE_COMMENT = "";

    public static final String FACE_IMAGE_BIG_COMMENT = "";

    public static final String NICKNAME_COMMENT = "";

    public static final String QRCODE_COMMENT = "";

    public static final String CID_COMMENT = "";



    public static Users of(Object obj) {
        Users e = new Users();
        BeanUtils.copyProperties(obj, e);
        return e;
    }

    public static QueryWrapper<Users> queryWrapper(Object obj) {
        return new QueryWrapper<>(of(obj));
    }

}
